﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UploadMultimedia.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="UploadMultimedia" %>
<%@ Register Assembly="Facebook.Web" Namespace="Facebook.Web.FbmlControls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="SectionPlaceHolder" Runat="Server" >

    <!-- Buttons to navigate between edit profile sections -->
    <asp:button runat="server" onclick="editProfileClick" text="Edit Profile" CssClass="content_btn" BackColor="#627AAD"
                BorderStyle="None" BorderWidth="0px" Font-Underline="True" ForeColor="White" />
    <asp:button runat="server" onclick="editMultimediaClick" text="Edit Multimedia" CssClass="content_btn" BackColor="White" Height="30"
                BorderStyle="None" BorderWidth="0px" Font-Underline="True" ForeColor="Black" />
    <asp:button runat="server" onclick="editCurriculumVitaeClick" text="Edit CV" CssClass="content_btn" BackColor="#627AAD"
                BorderStyle="None" BorderWidth="0px" Font-Underline="True" ForeColor="White" />

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ProfilePlaceHolder" Runat="Server" >
    
    <!-- You are currently editing your profile box. -->
    <div style="background-color: #EDEFF4;border-style: double;border-width: 1px;color: Black">

         &nbsp;
         <asp:image runat="server" id="editImage" width="16" height="16"  imageurl="Images/editmode.png" />
         &nbsp;
         <asp:label runat="server" text="You are currently editing your profile." />
         &nbsp;

    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server" >

    <h2>Embed Multimedia</h2>

    Welcome to the multimedia form! To embed content to your profile please post the link to your
    YouTube Video/Audio in the link below and click the validate button.
    <p />
    <i>Example Link:</i><br />
    <asp:image runat="server" id="videoExampleImage" width="500" height="30" imageurl="Images/uploadvideoexample.png" />  
    <p />
    URL: &nbsp; <asp:TextBox id="embeddedContentBox" width="350px" runat="server" />
    &nbsp;  <asp:Button id="validateButton" width="60px" runat="server" text="Validate" 
            onclick="validateButton_Click" />

        <asp:Repeater id="MultimediaContentRepeater" runat="Server" EnableViewState="false" onprerender="MultimediaContentRepeaterPreRender">
        <HeaderTemplate>
            <h2>Delete Multimedia</h2>
            <p>
            Below is the current multimedia that is embedded to your profile page. Please click the 'X' button
            to delete content.
            </p>
            <div class="headerLightStyle" >Current Multimedia</div>        
        </HeaderTemplate>
        <ItemTemplate>
            <div style="height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:Black">
                   <div style="float:left">
                        • <asp:label runat="server" text='<%# ((EmbeddedObject)Container.DataItem).Title  %>' />
                  </div>
                  <div style="float:right">
                            <asp:button runat="server" onclick="deleteEntryClick" Width="35px"
                            text="X" CssClass="btn" BackColor="White" BorderStyle="None" BorderWidth="0px"
                            CommandName='<%# ((EmbeddedObject)Container.DataItem).ID %>' 
                            CommandArgument='<%# ((EmbeddedObject)Container.DataItem).Title %>'
                            ForeColor="Red" />
                  </div>
            </div>            
        </ItemTemplate>
        <AlternatingItemTemplate>
            <div style="height:30px;background-color: #EDEFF4;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:Black">
                   <div style="float:left">
                        • <asp:label runat="server" text='<%# ((EmbeddedObject)Container.DataItem).Title  %>' />
                  </div>
                  <div style="float:right">
                            <asp:button runat="server" onclick="deleteEntryClick" Width="35px"
                            text="X" CssClass="btn" BackColor=" #EDEFF4" BorderStyle="None" BorderWidth="0px"
                            CommandName='<%# ((EmbeddedObject)Container.DataItem).ID %>' 
                            CommandArgument='<%# ((EmbeddedObject)Container.DataItem).Title %>'
                            ForeColor="Red" />
                  </div>
            </div>            
        </AlternatingItemTemplate>
        </asp:Repeater>


</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="SideBarPlaceHolder" Runat="Server">



</asp:Content>